package com.qtcm.nas.jhx.mdpf.web;

import com.qtcm.nas.jhx.mdpf.pojo.mdpf;
import com.qtcm.nas.jhx.mdpf.service.IMdpfservice;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;
import java.util.List;

@Controller
@RequestMapping("/admin/car/bosssystem")
public class MdpfController {
    @Resource
    private IMdpfservice mdpfservice;
    @RequestMapping("/findAllpf")
    public String findAll(Model model){
        List<mdpf>list=mdpfservice.findAll();
        model.addAttribute("list",list);
        for (Object pf :list){
            System.out.println(pf);
        }
        return "score_sort";
    }
}
